package me.leon.aoptest;

import android.os.SystemClock;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;

import me.leon.aoplib.SingleClick;
import me.leon.aoplib.TimeTakes;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        findViewById(R.id.tv).setOnClickListener(this::hehe);
    }

    @SingleClick
    @TimeTakes
    public void hehe(View view) {
        SystemClock.sleep(100);
        System.out.println("hehe");
    }
}
